package com.guyaogg.gulimall.product.feign;

import com.guyaogg.common.to.es.SkuEsModel;
import com.guyaogg.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @author 顾遥
 */
@FeignClient("gulimall-search")
@RequestMapping("/search/save")
public interface SearchFeignService {

    @PostMapping("/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
